[BITS 32]
[extern kernel]
[global entree]

%define MBOOT_MAGIC 0x1BADB002
%define MBOOT_FLAGS 0

align 4
mboot_header:
  dd MBOOT_MAGIC
  dd MBOOT_FLAGS
  dd - (MBOOT_MAGIC + MBOOT_FLAGS)

[section .text]

entree:
  mov esp, FIN_DE_PILE

  mov edx, 0xB8000
  mov byte [edx], 'A'

  push eax
  push ebx
  call kernel

  hlt

[section .bss]
  resb 0x4000
FIN_DE_PILE:

